Dynomotion

Group: DynoMotion Message: 9935 From: nbrobot Date: 8/9/2014
Subject: DotNet Console Error: BadImageFormatException

Hello,


I am trying to get up and running with the Kmotion_DotNet dll in C#.  I am running VS2012 Professional on Win7 64bit.


I opened the test project "KMotion_dotNet Console" and have not modified the project and the dll reference is to: C:\KMotion432\KMotion\Release\KMotion_dotNet.dll


I get the following error when trying to run it:

BadImageFormateException was unhandled; Could not load file or assembly 'KMotion_dotNet, Version=1.0.1.0, Culture=neutral, PublicKeyToken=fcaf9556d6f68c3a' or one of its dependencies. An attempt was made to load a program with an incorrect format.


My understanding from searching the web is that it's a 32-bit vs. 64-bit issue.


However, I can't find a 64-bit version of the KMotion_dotNet dll.


I opened the BuildAllLibs solution and tried to rebuild everything, but I just get a bunch of "error C1083: Cannot open include file: 'afxwin.h': No such file or directory"


This issue has brought my development to a halt and the project is on an extremely tight schedule.


Any help as soon as possible would be much appreciated!


Thanks!

Neville


 

Group: DynoMotion Message: 9936 From: nbrobot Date: 8/9/2014
Subject: Re: DotNet Console Error: BadImageFormatException
I figured it out.  I needed to set the Platform Target to x86.

I then had to add "C:\KMotion432\KMotion\Release" to the Windows Path Environment Variable.

I still don't know why the BuildAllLibs project is giving the afxwin.h error; any help on that would be appreciated.

Thanks,
Neville